const {override, fixBabelImports, addDecoratorsLegacy, addWebpackAlias} = require('customize-cra');

module.exports = override(
  addDecoratorsLegacy(),
  addWebpackAlias({
    '@': require('path').join(__dirname, '.', 'src')
  }),
  fixBabelImports('import', {
    libraryName: 'antd',
    libraryDirectory: 'es',
    style: true,
  })
);